extends layout

block content
    h1 收藏列表
    script isLogin()
    div(class='container')
        -  // 列表渲染
        each film in jfilms
            div(class="box" )
                div(class='box-left')
                    a(href="https://www.maoyan.com"+film.fid )
                        img(src=film.img, alt="" width="" height="100%")
                div(class="box-right")
                    h3= film.name
                    div(class="tags")
                        p= '类别：' + film.tags
                    div(class="space")
                    div(class='actor')
                        p= '主演：' + film.acts.replace("/", " ").replace("/"," ")
                    div(class='time')
                        p= '上映时间：'+film.time
                    div(class='btn-box')
                        button(id='btn', type="submit" onclick="uncollect("+film.mid+")") 取消收藏
                        button(id='btn', type="submit" onclick="rank(" +film.mid+", '"+film.name+"')") 评分
        
    include navpage.pug